package Java2Test.mythread.waitandnotify;

public class ThreadDemo {
    public static void main(String[] args) {

        /*
                需求：完成生产者和消费者（等待唤醒机制）的代码
                    实现线程轮流交替执行的效果
         */
        Cook cook = new Cook();
        Foodie foodie = new Foodie();

        cook.start();
        foodie.start();
    }
}
